package org.luo.iot.domain.device;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum DeviceStatus {
    NORMAL(1, "正常"),
    DISABLE(2, "禁用");
    @EnumValue
    @JsonValue
    private final int value;
    private final String desc;

    DeviceStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
